package com.foftact.blockposition;

import java.util.Date;

/**
 * 板块成分股模型类
 * 对应数据库表：blockposition
 */
public class BlockPosition {
    private Long id;             // 主键ID
    private Integer marketCode;  // 市场码
    private String code;         // 股票代码
    private String name;         // 股票名称
    private String blockCode;    // 所属板块代码
    private String dataSource;   // 数据来源
    private Date updateTime;     // 更新时间
    private Boolean valid;       // 有效标志

    // getter和setter方法
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getMarketCode() {
        return marketCode;
    }

    public void setMarketCode(Integer marketCode) {
        this.marketCode = marketCode;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBlockCode() {
        return blockCode;
    }

    public void setBlockCode(String blockCode) {
        this.blockCode = blockCode;
    }

    public String getDataSource() {
        return dataSource;
    }

    public void setDataSource(String dataSource) {
        this.dataSource = dataSource;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Boolean getValid() {
        return valid;
    }

    public void setValid(Boolean valid) {
        this.valid = valid;
    }

    @Override
    public String toString() {
        return "BlockPosition{" +
                "id=" + id +
                ", marketCode=" + marketCode +
                ", code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", blockCode='" + blockCode + '\'' +
                ", updateTime=" + updateTime +
                ", valid=" + valid +
                '}';
    }
}